import request from '@/utils/request'

export function listequipmentClass(query) {
  return request({
    url: '/equipment/equipmentClass/list',
    method: 'get',
    params: query
  })
}

export function createequipmentClass(data) {
  return request({
    url: '/equipment/equipmentClass/create',
    method: 'post',
    data
  })
}

export function readequipmentClass(data) {
  return request({
    url: '/equipment/equipmentClass/get/' + data.id,
    method: 'get'
  })
}

export function updateequipmentClass(data) {
  return request({
    url: '/equipment/equipmentClass/update',
    method: 'post',
    data
  })
}

export function deleteequipmentClass(data) {
  return request({
    url: '/equipment/equipmentClass/delete/' + data.fclassstno,
    method: 'delete'
  })
}
